Skip to content

Release v0.9.3#430

Merged
rubencalje merged 30 commits intomainfrom
dev
Mar 18, 2025
Merged

Release v0.9.3#430
rubencalje merged 30 commits intomainfrom
dev

Conversation

@rubencalje
Copy link
Collaborator

@rubencalje rubencalje commented Mar 18, 2025

This release is made because of a change in the layer names of REGIS since today (march 18 2025). The layer names are renamed to their old names for now, so existing model-scripts behave the same as before. In a next mayor version, we may choose to adopt the new layer names.

OnnoEbbens and others added 28 commits February 25, 2025 15:44
- define NLMOD_CACHE_OPTIONS
- set defaults (identical to current caching defaults)
- add context manager for cache options
- add functions to set, get and reset options.
- add check for setting NLMOD_CACHING_OPTIONS
- add logging when global config modifies default
- do not check hashes if global option overrides cache decorator setting
- add explicit dataset coordinate check, useful if hash checks are disabled.
- use assert_identical
- invalidate cache when explicit check fails
- allows for using different option for parsing paleochannels without having to run all methods separately.
Add sources for "Hunze en Aa's"
Change source of level-areas for "Noorderzijlvest"
Change source of watercourses of "Aa en Maas", "De Dommel" and "Schieland en de Krimpenerwaard"
Change index-name of watercourses for "Rivierenland" (from "code" to "CODE", the default)
And upload summer_stage.png and winter_stage.png for documentation
- accessing gwf.modelgrid arrays is insanely slow for some reason.
- add a different strt computation when strt=None. Default is now to use model surface level instead of 0.0.
Pass geotop layers to get_combined_layer_models
allow getting layer top/botm from ds
allow passing multiple lake observation types as a list of str
* Add rename_layers_to_old_names

* Name argument rename_layers_to_version_2_2_2  instead of rename_layers_to_old_names

* move files to regis directory and add to pyproject

* add regis to pyproject

* excel -> csv and add mv

* codacy

---------

Co-authored-by: Onno Ebbens <onnoebbens@gmail.com>
* add functions to check ds or da grid type
- is_structured
- is_vertex
- is_layered

* add _get_empty_layered_da
- add method to get empty data array with new layer coord but maintaining other dims/coords from source data array

* use new method to get empty da when combining layers

* fix combine_layers to work for vertex datasets

* improve combine_layers
- only drop datavars with layer coord
- add the other datavars back to final combined result
- lazy formatting in logging

* add import

* ruff

* ruff

* Add a GridTypeDims enum
- specificies dimensions for grid types

* ruff

* add test for combining layers unstructured

* add option to return reindexer:
- no longer add reindexer to attributes (this was annoying when saving the dataset)

* make enum even more complicated
- add parse_dims class method
- use this in is_structured and is_vertex grid-methods

* codacy

* docstring
@rubencalje
Copy link
Collaborator Author

Codacy issues can be ignored.

Copy link
Collaborator

@martinvonk martinvonk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wd

@github-project-automation github-project-automation bot moved this from Todo to In Progress in NHFLO Mar 18, 2025
@rubencalje rubencalje merged commit 3e1cd49 into main Mar 18, 2025
5 of 6 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in NHFLO Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants